dic_li = [
    {'name': '张三', 'grade': 60},
    {'name': '李四', 'grade': 80},
    {'name': '王五', 'grade': 99},
    {'name': '小宋', 'grade': 56}
]
for i in dic_li:
    # print(i.get('grade'))   # 通过键去获取值     ['name']    .get('name')
    if i.get('grade') < 60:
        print(f'{i.get("name")}不合格,成绩为{i.get("grade")}')
    else:
        print(f'{i.get("name")}合格,成绩为{i.get("grade")}')